<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <div class="col-md-12">
        <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
            <div class="panel panel-my">
                <div class="panel-heading" role="tab" id="headingOne" >
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne" >
                            仓库管理
                        </a>
                    </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                    <div class="list-group">
                        <a href="${pageContext.request.contextPath}/StoreServlet/listByPage?pageNum=1"><button class="list-group-item">仓库列表</button></a>
                        <a href="${pageContext.request.contextPath}/StoreServlet/preAdd"><button class="list-group-item">仓库添加</button></a>
                    </div>
                </div>
            </div>
           
            </div>
        </div>
    </div>
    <script>
    	$('.panel .panel-title a').each(function(){
    		if($(this).html().trim()=='${param.one}'){
    			$(this).parents('.panel-heading').next().addClass('in');
    		}
    	});
    	
    	$('.list-group-item').each(function(){
    		if($(this).html()=='${param.two}'){
    			$(this).addClass('active');
    		}
    	});
    	
    </script>